package com.googlecode.openauth.web.dao;

import java.util.List;

import org.apache.ibatis.session.RowBounds;

import com.googlecode.openauth.web.entity.MenuInfo;
import com.googlecode.openauth.web.entity.RoleInfo;


public interface IMenuDao {
	public void addMenuInfo(MenuInfo res);
	public void delMenuInfo(int roleId);
	public void updateMenu(MenuInfo res);
	public List<MenuInfo> getMenus(MenuInfo res);
	public MenuInfo getMenuById(int resId);
	public List<MenuInfo> getAllMenu(MenuInfo res);
	public int getAllMenusCount(MenuInfo role);
	public List<MenuInfo> getAllMenus(MenuInfo role, RowBounds rowBonds);
	public int searchMenusCount(MenuInfo res);
	public List<MenuInfo> searchMenus(MenuInfo res, RowBounds rowBonds);
	public List<MenuInfo> getParentMenu(MenuInfo res);
}
